// import { ElButton } from 'element-plus'
// import lang from 'element-plus/lib/locale/lang/zh-cn'
// import locale from 'element-plus/lib/locale'
//
// export default (app) => {
//   locale.use(lang)
//   app.use(ElButton)
// }

// 我修改的 ts版本的按需加载element
import {
  ElAside,
  ElButton,
  ElCard,
  ElCheckbox,
  ElContainer,
  ElDropdown,
  ElDropdownMenu,
  ElDropdownItem,
  ElFooter,
  ElForm,
  ElFormItem,
  ElHeader,
  ElInput,
  ElIcon,
  ElMain,
  ElMenu,
  ElMenuItem,
  ElMenuItemGroup,
  ElMessage,
  ElMessageBox,
  ElSubmenu,
  ElTimeline,
  ElTimelineItem
} from 'element-plus';
// import lang from 'element-plus/lib/locale/lang/zh-cn'
// import locale from 'element-plus/lib/locale'

const installElementPlus: any = (app: any) => {
  // locale.use(lang)
  app.use(ElAside);
  app.use(ElButton);
  app.use(ElCard);
  app.use(ElCheckbox);
  app.use(ElContainer);
  app.use(ElDropdown);
  app.use(ElDropdownMenu);
  app.use(ElDropdownItem);
  app.use(ElFooter);
  app.use(ElForm);
  app.use(ElFormItem);
  app.use(ElHeader);
  app.use(ElIcon);
  app.use(ElInput);
  app.use(ElMain);
  app.use(ElMenu);
  app.use(ElMenuItem);
  app.use(ElMenuItemGroup);
  app.use(ElMessage);
  app.use(ElMessageBox);
  app.use(ElSubmenu);
  app.use(ElTimeline);
  app.use(ElTimelineItem);
};

export default installElementPlus;
